/**
 * @name 前缀面具open
 */
export const iceMo = () => {
	// 创建一个新的 div 元素
	var view = document.createElement('view')
	view.id = 'iceMesk'
	// 设置样式为 fixed 定位
	view.style.position = 'fixed'
	view.style.top = '0'
	view.style.left = '0'
	view.style.width = '100%'
	view.style.height = '100%'
	view.style.backgroundColor = 'rgba(255, 255, 255, 0)'
	view.style.display = 'flex'
	view.style.alignItems = 'center'
	view.style.justifyContent = 'center'
	view.style.zIndex = '3'
	view.style.backdropFilter = 'blur(0px)'
	view.style.transition = '.9s'
	requestAnimationFrame(()=>{
		view.style.backgroundColor = 'rgba(255, 255, 255, .9)'
		view.style.backdropFilter = 'blur(5px)'
	})
	document.body.appendChild(view)
}
/**
 * @name 前缀面具close
 */
export const iceMc = () => {
	// 假设你已经有了一个具有唯一 ID 的元素
	var elementById = document.getElementById('iceMesk')
	// 检查元素是否存在
	if (elementById) {
		// 获取元素的父节点
		var parent = elementById.parentNode
		// 从父节点中移除该元素
		parent.removeChild(elementById)
	}
}